<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>addGoods.jsp</title>
<link href="${pageContext.request.contextPath }/css/admin/common.css" type="text/css" rel="stylesheet">
<style type="text/css">
    table{
        border-color:green;
        margin-left:20px;
        margin-top:20px;
        width:600px;
    }
    table tr td{
        padding:10px 5px;
        font-size: 12px;    
    }
    table tr:nth-child(odd){
        background-color: #eee;
    }
    table tr td input[type=submit],table tr td input[type=reset]{width:137px;height:35px; background:url(images/btnbg.png) no-repeat; font-size:14px;font-weight:bold;color:#fff; cursor:pointer;}
    table tr td input[type=text]{width:345px; height:25px; line-height:25px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df;text-indent:10px;}
    select{width:105px; height:25px; line-height:25px; border-top:solid 1px #a7b5bc; border-left:solid 1px #a7b5bc; border-right:solid 1px #ced9df; border-bottom:solid 1px #ced9df;text-indent:10px;}
    table tr td:first-child{padding-left:23px;line-height:25px; font-weight: bold;text-align: center;}
</style>
</head>    
<body>
    <form:form action="${pageContext.request.contextPath }/adminGoods/addGoods" method="post" modelAttribute="goods" enctype="multipart/form-data">
        <table border=1 style="border-collapse: collapse">
            <caption>
                <font size=4 face="黑体">添加商品</font>
            </caption>
            <tr>
                <td>名称<font color="red">*</font></td>
                <td>
                    <form:input path="gname" />
                </td>
            </tr>
            <tr>
                <td>原价<font color="red">*</font></td>
                <td>
                    <form:input path="goprice"/>
                </td>
            </tr>
            <tr>
                <td>折扣价</td>
                <td>
                    <form:input path="grprice"/>
                </td>
            </tr>
            <tr>
                <td>库存</td>
                <td>
                    <form:input path="gstore"/>
                </td>
            </tr>
            <tr>
                <td>图片</td>
                <td>
                    <input type="file" name="logoImage"/>
                </td>
            </tr>
            <tr>
                <td>类型</td>
                <td>
                    <form:select path="goodstype_id">
                         <form:options items="${goodsType }" itemLabel="typename" itemValue="id"/>
                       </form:select>
                </td>
            </tr>
            <tr>
                <td align="center">
                    
                </td>
                <td align="left">
                    <input type="submit" value="提交"/>
                    <input type="reset" value="重置"/>
                </td>
            </tr>
        </table>
    </form:form>
</body>
</html>